<?php
$t = "หมูหล่อ";
echo $t."<br />";
for($i=0;$i<strlen($t);$i++){
    $c = substr($t,$i,1);
    $n = $c/10;
    $q1 = $c%10;
    
    $m = $n/10;
    $q2 = $n%10;
    
    echo $m.$q2.$q1."<br />";
}
?>
